package com.lwz.eduservice.mapper;

import com.lwz.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lwz.eduservice.entity.frontvo.CourseWebVo;
import com.lwz.eduservice.entity.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author Lw中
 * @since 2020-11-11
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 通过课程的id查询发布时需要显示的课程相关信息
     * @param causeId
     * @return
     */
    public CoursePublishVo getPublishCourseInfo(@Param("causeId") String causeId);

    /**
     * 通过courseId查询课程相关的所有需要传递到前端的信息
     * @param courseId
     * @return
     */
    public CourseWebVo getBaseCourseInfo(String courseId);
}
